package com.maxjay.component.simplelist.service;

import java.util.List;
import java.util.Map;

public interface PaginationService {
	
	/**
	 * 通过分页信息进行数据库分页查询
	 * 
	 * @param sql
	 * @param params
	 * @param page
	 * @return
	 */
	List<Map<String, Object>> getPaginationData(String sql, Map<String, Object> params, int startRowIndex, int endRowIndex);
	
	int getDataCount(String sql, Map<String, Object> params);
	
}
